--- a/ccache.c
+++ b/ccache.c
@@ -1803,6 +1803,7 @@ calculate_object_hash(struct args *args,
 			"CPLUS_INCLUDE_PATH",
 			"OBJC_INCLUDE_PATH",
 			"OBJCPLUS_INCLUDE_PATH", // clang
+			"GCC_HONOUR_COPTS",
 			NULL
 		};
 		for (const char **p = envvars; *p; ++p) {
